<!doctype html>
<html lang="zh"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta><title>微软变更cookie的默认策略 - 荣陶博客</title><link rel="manifest" href="/manifest.json"><meta name="application-name" content="zhuo"><meta name="msapplication-TileImage" content="/images/favicon-32x32-tao.svg"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-title" content="zhuo"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta name="description" content="微软变更cookie的默认策略正文SameSite是IETF草案标准,旨在为跨站点请求伪造(CSRF)攻击提供某种保护.该标准草案最初于2016年起草,于2019年更新.该更新不兼容2016的标准.变更的重点是未明确指定时默认行为由None变更为Lax,chrome80版本官方说法默认开启该行为,在windows服务器或者个人机更新补丁时,可能会更新到该行为由 1Set-Cookie: ASP.N"><meta property="og:type" content="blog"><meta property="og:title" content="微软变更cookie的默认策略"><meta property="og:url" content="http://yoursite.com/2020/05/10/%E5%BE%AE%E8%BD%AF%E5%8F%98%E6%9B%B4cookie%E7%9A%84%E9%BB%98%E8%AE%A4%E7%AD%96%E7%95%A5/"><meta property="og:site_name" content="荣陶博客"><meta property="og:description" content="微软变更cookie的默认策略正文SameSite是IETF草案标准,旨在为跨站点请求伪造(CSRF)攻击提供某种保护.该标准草案最初于2016年起草,于2019年更新.该更新不兼容2016的标准.变更的重点是未明确指定时默认行为由None变更为Lax,chrome80版本官方说法默认开启该行为,在windows服务器或者个人机更新补丁时,可能会更新到该行为由 1Set-Cookie: ASP.N"><meta property="og:locale" content="zh_CN"><meta property="og:image" content=""><meta property="article:published_time" content="2020-05-10T08:56:39.000Z"><meta property="article:modified_time" content="2020-05-10T13:39:48.811Z"><meta property="article:author" content="rongtao"><meta property="article:tag" content="工具"><meta property="twitter:card" content="summary"><meta property="twitter:image" content=""><script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"http://yoursite.com/2020/05/10/%E5%BE%AE%E8%BD%AF%E5%8F%98%E6%9B%B4cookie%E7%9A%84%E9%BB%98%E8%AE%A4%E7%AD%96%E7%95%A5/"},"headline":"微软变更cookie的默认策略","image":[],"datePublished":"2020-05-10T08:56:39.000Z","dateModified":"2020-05-10T13:39:48.811Z","author":{"@type":"Person","name":"rongtao"},"publisher":{"@type":"Organization","name":"荣陶博客","logo":{"@type":"ImageObject","url":"http://yoursite.com/images/favicon-32x32-tao.svg"}},"description":"微软变更cookie的默认策略正文SameSite是IETF草案标准,旨在为跨站点请求伪造(CSRF)攻击提供某种保护.该标准草案最初于2016年起草,于2019年更新.该更新不兼容2016的标准.变更的重点是未明确指定时默认行为由None变更为Lax,chrome80版本官方说法默认开启该行为,在windows服务器或者个人机更新补丁时,可能会更新到该行为由 1Set-Cookie: ASP.N"}</script><link rel="canonical" href="http://yoursite.com/2020/05/10/%E5%BE%AE%E8%BD%AF%E5%8F%98%E6%9B%B4cookie%E7%9A%84%E9%BB%98%E8%AE%A4%E7%AD%96%E7%95%A5/"><link rel="alternate" href="/path/to/atom.xml" title="荣陶博客" type="application/atom+xml"><link rel="icon" href="/images/favicon-32x32-tao.svg"><link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.2/css/all.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@9.12.0/styles/atom-one-light.css"><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;600&amp;family=Source+Code+Pro"><link rel="stylesheet" href="/css/default.css"><style>body>.footer,body>.navbar,body>.section{opacity:0}</style><!--!--><!--!--><!--!--><!--!--><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lightgallery@1.6.8/dist/css/lightgallery.min.css"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/css/justifiedGallery.min.css"><!--!--><!--!--><script src="https://cdn.jsdelivr.net/npm/pace-js@1.0.2/pace.min.js"></script><!--!--><!--!--><meta name="generator" content="Hexo 5.4.0"></head><body class="is-2-column"><nav class="navbar navbar-main"><div class="container"><div class="navbar-brand justify-content-center"><a class="navbar-item navbar-logo" href="/"><img src="/images/favicon-32x32-tao.svg" alt="荣陶博客" height="28"></a></div><div class="navbar-menu"><div class="navbar-start"><a class="navbar-item" href="/">首页</a><a class="navbar-item" href="/archives">归档</a><a class="navbar-item" href="/categories">分类</a><a class="navbar-item" href="/tags">标签</a><a class="navbar-item" href="/about">关于我</a></div><div class="navbar-end"><a class="navbar-item" target="_blank" rel="noopener" title="Download on GitHub" href="https://github.com/zhuorongtao"><i class="fab fa-github"></i></a><a class="navbar-item search" title="搜索" href="javascript:;"><i class="fas fa-search"></i></a></div></div></div></nav><section class="section"><div class="container"><div class="columns"><div class="column order-2 column-main is-8-tablet is-8-desktop is-8-widescreen"><div class="card"><article class="card-content article" role="article"><div class="article-meta is-size-7 is-uppercase level is-mobile"><div class="level-left"><span class="level-item"><time dateTime="2020-05-10T08:56:39.000Z" title="5/10/2020, 4:56:39 PM">2020-05-10</time>发表</span><span class="level-item"><time dateTime="2020-05-10T13:39:48.811Z" title="5/10/2020, 9:39:48 PM">2020-05-10</time>更新</span><span class="level-item">2 小时读完 (大约17418个字)</span></div></div><h1 class="title is-3 is-size-4-mobile">微软变更cookie的默认策略</h1><div class="content"><h1 id="微软变更cookie的默认策略"><a href="#微软变更cookie的默认策略" class="headerlink" title="微软变更cookie的默认策略"></a>微软变更cookie的默认策略</h1><h2 id="正文"><a href="#正文" class="headerlink" title="正文"></a>正文</h2><p>SameSite是IETF草案标准,旨在为跨站点请求伪造(<strong>CSRF</strong>)攻击提供某种保护.该标准草案最初于2016年起草,于2019年更新.该更新不兼容2016的标准.<br>变更的重点是<strong>未明确指定时默认行为由None变更为Lax</strong>,chrome80版本官方说法默认开启该行为,在windows服务器或者个人机更新补丁时,可能会更新到该行为<br>由</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Set-Cookie: ASP.NET_SessionId=hlftr5atg4lmsnzyx5disqms; path=/; HttpOnly;</span><br></pre></td></tr></table></figure>
<p>变更为</p>
<figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Set-Cookie: ASP.NET_SessionId=hlftr5atg4lmsnzyx5disqms; path=/; HttpOnly; SameSite=Lax</span><br></pre></td></tr></table></figure>
<p>该行为在跨域名请求时,如果服务器端依赖cookie进行会话处理的话,那么就会丢失会话.<br>原因是<strong>Lax模式下post请求cookie跨域是未进行传递的</strong>.</p>
<h2 id="解决方案"><a href="#解决方案" class="headerlink" title="解决方案"></a>解决方案</h2><p>由于是丢失cookie导致丢失会话,那么无非三种方式处理.</p>
<ol>
<li>替换会话媒介<br> 使用header中的Authorization来代替cookie,但是需要会话由原本的cookie换成header涉及到后端代码修改.  </li>
<li>设置cookie的SameSite   <figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">system.web</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">sessionState</span> <span class="attr">mode</span>=<span class="string">&quot;InProc&quot;</span> <span class="attr">timeout</span>=<span class="string">&quot;60&quot;</span>/&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">system.web</span>&gt;</span></span><br></pre></td></tr></table></figure>
 增加cookieSameSite配置 <figure class="highlight xml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag">&lt;<span class="name">system.web</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">sessionState</span> <span class="attr">mode</span>=<span class="string">&quot;InProc&quot;</span> <span class="attr">timeout</span>=<span class="string">&quot;60&quot;</span> <span class="attr">cookieSameSite</span>=<span class="string">&quot;None&quot;</span>/&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">system.web</span>&gt;</span></span><br></pre></td></tr></table></figure>
 但是由于windows更新的关系,这个配置有些服务器端不支持该配置,需要更新进行系统更新,具体配置处理参考官方<a target="_blank" rel="noopener" href="https://docs.microsoft.com/en-us/aspnet/samesite/system-web-samesite#supporting-older-browsers">文档</a>.  </li>
<li>关闭浏览器的SameSite策略<br> chrome80默认是打开该变更的,关闭就可以了<br> <img src="" alt="关闭配置"><h2 id="参考资料"><a href="#参考资料" class="headerlink" title="参考资料"></a>参考资料</h2><a target="_blank" rel="noopener" href="https://docs.microsoft.com/en-us/aspnet/samesite/system-web-samesite">微软变更说明文档</a><br><a target="_blank" rel="noopener" href="https://docs.microsoft.com/en-us/aspnet/samesite/kbs-samesite">导致该行为windows更新</a><br><a target="_blank" rel="noopener" href="https://chromestatus.com/feature/5088147346030592">chrome的SameSite行为</a></li>
</ol>
</div><div class="article-licensing box"><div class="licensing-title"><p>微软变更cookie的默认策略</p><p><a href="http://yoursite.com/2020/05/10/微软变更cookie的默认策略/">http://yoursite.com/2020/05/10/微软变更cookie的默认策略/</a></p></div><div class="licensing-meta level is-mobile"><div class="level-left"><div class="level-item is-narrow"><div><h6>作者</h6><p>rongtao</p></div></div><div class="level-item is-narrow"><div><h6>发布于</h6><p>2020-05-10</p></div></div><div class="level-item is-narrow"><div><h6>更新于</h6><p>2020-05-10</p></div></div><div class="level-item is-narrow"><div><h6>许可协议</h6><p><a class="icons" rel="noopener" target="_blank" title="Creative Commons" href="https://creativecommons.org/"><i class="icon fab fa-creative-commons"></i></a><a class="icons" rel="noopener" target="_blank" title="Attribution" href="https://creativecommons.org/licenses/by/4.0/"><i class="icon fab fa-creative-commons-by"></i></a><a class="icons" rel="noopener" target="_blank" title="Noncommercial" href="https://creativecommons.org/licenses/by-nc/4.0/"><i class="icon fab fa-creative-commons-nc"></i></a></p></div></div></div></div></div><div class="article-tags is-size-7 mb-4"><span class="mr-2">#</span><a class="link-muted mr-2" rel="tag" href="/tags/%E5%B7%A5%E5%85%B7/">工具</a></div><div class="notification is-danger">You need to set <code>install_url</code> to use ShareThis. Please set it in <code>_config.yml</code>.</div></article></div><div class="card"><div class="card-content"><h3 class="menu-label has-text-centered">喜欢这篇文章？打赏一下作者吧</h3><div class="buttons is-centered"><a class="button donate" href="/" target="_blank" rel="noopener" data-type="afdian"><span class="icon is-small"><i class="fas fa-charging-station"></i></span><span>爱发电</span></a><a class="button donate" data-type="alipay"><span class="icon is-small"><i class="fab fa-alipay"></i></span><span>支付宝</span><span class="qrcode"><img src="/" alt="支付宝"></span></a><a class="button donate" href="/" target="_blank" rel="noopener" data-type="buymeacoffee"><span class="icon is-small"><i class="fas fa-coffee"></i></span><span>送我杯咖啡</span></a><a class="button donate" href="/" target="_blank" rel="noopener" data-type="patreon"><span class="icon is-small"><i class="fab fa-patreon"></i></span><span>Patreon</span></a><div class="notification is-danger">You forgot to set the <code>business</code> or <code>currency_code</code> for Paypal. Please set it in <code>_config.yml</code>.</div><a class="button donate" data-type="wechat"><span class="icon is-small"><i class="fab fa-weixin"></i></span><span>微信</span><span class="qrcode"><img src="/" alt="微信"></span></a></div></div></div><nav class="post-navigation mt-4 level is-mobile"><div class="level-start"><a class="article-nav-prev level level-item link-muted" href="/2020/05/10/%E6%95%B0%E6%8D%AE%E5%BA%93%E5%A4%87%E4%BB%BD%E8%BF%98%E5%8E%9F/"><i class="level-item fas fa-chevron-left"></i><span class="level-item">数据库备份还原</span></a></div><div class="level-end"><a class="article-nav-next level level-item link-muted" href="/2020/05/10/vagrant%E4%BD%BF%E7%94%A8/"><span class="level-item">vagrant使用</span><i class="level-item fas fa-chevron-right"></i></a></div></nav><div class="card"><div class="card-content"><h3 class="title is-5">评论</h3><div class="notification is-danger">You forgot to set the <code>shortname</code> for Disqus. Please set it in <code>_config.yml</code>.</div></div></div></div><div class="column column-left is-4-tablet is-4-desktop is-4-widescreen  order-1"><div class="card widget" data-type="profile"><div class="card-content"><nav class="level"><div class="level-item has-text-centered flex-shrink-1"><div><figure class="image is-128x128 mx-auto mb-2"><img class="avatar" src="/images/logo.png" alt="荣陶博客"></figure><p class="title is-size-4 is-block" style="line-height:inherit;">荣陶博客</p><p class="is-size-6 is-block">荣陶笔记</p><p class="is-size-6 is-flex justify-content-center"><i class="fas fa-map-marker-alt mr-1"></i><span>广东广州</span></p></div></div></nav><nav class="level is-mobile"><div class="level-item has-text-centered is-marginless"><div><p class="heading">文章</p><a href="/archives"><p class="title">9</p></a></div></div><div class="level-item has-text-centered is-marginless"><div><p class="heading">分类</p><a href="/categories"><p class="title">0</p></a></div></div><div class="level-item has-text-centered is-marginless"><div><p class="heading">标签</p><a href="/tags"><p class="title">7</p></a></div></div></nav><div class="level"><a class="level-item button is-primary is-rounded" href="https://github.com/zhuorongtao" target="_blank" rel="noopener">关注我</a></div><div class="level is-mobile is-multiline"><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="Github" href="https://github.com/zhuorongtao"><i class="fab fa-github"></i></a><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="Facebook" href="https://facebook.com"><i class="fab fa-facebook"></i></a><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="Twitter" href="https://twitter.com"><i class="fab fa-twitter"></i></a><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="Dribbble" href="https://dribbble.com"><i class="fab fa-dribbble"></i></a><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="RSS" href="/"><i class="fas fa-rss"></i></a></div></div></div><!--!--><div class="card widget" data-type="links"><div class="card-content"><div class="menu"><h3 class="menu-label">链接</h3><ul class="menu-list"><li><a class="level is-mobile" href="https://github.com/zhuorongtao" target="_blank" rel="noopener"><span class="level-left"><span class="level-item">GitHub</span></span><span class="level-right"><span class="level-item tag">github.com</span></span></a></li><li><a class="level is-mobile" href="https://gitee.com/rongtao" target="_blank" rel="noopener"><span class="level-left"><span class="level-item">码云</span></span><span class="level-right"><span class="level-item tag">gitee.com</span></span></a></li></ul></div></div></div><!--!--><div class="card widget" data-type="recent-posts"><div class="card-content"><h3 class="menu-label">最新文章</h3><article class="media"><div class="media-content"><p class="date"><time dateTime="2020-10-18T01:10:12.000Z">2020-10-18</time></p><p class="title"><a href="/2020/10/18/%E9%AB%98%E5%8F%AF%E7%94%A8%E5%A4%9Amaster%E8%8A%82%E7%82%B9%E9%9B%86%E7%BE%A4/">高可用多master节点集群</a></p></div></article><article class="media"><div class="media-content"><p class="date"><time dateTime="2020-05-29T01:09:28.000Z">2020-05-29</time></p><p class="title"><a href="/2020/05/29/CentOS%E9%80%9A%E8%BF%87Docker%E8%BF%90%E8%A1%8CAbp%E9%A1%B9%E7%9B%AE/">CentOS通过Docker运行Abp项目</a></p></div></article><article class="media"><div class="media-content"><p class="date"><time dateTime="2020-05-18T01:54:08.000Z">2020-05-18</time></p><p class="title"><a href="/2020/05/18/IIS%E8%87%AA%E5%8A%A8%E5%8F%91%E5%B8%83/">IIS自动发布</a></p></div></article><article class="media"><div class="media-content"><p class="date"><time dateTime="2020-05-14T01:25:40.000Z">2020-05-14</time></p><p class="title"><a href="/2020/05/14/Abp-%E6%96%87%E4%BB%B6%E5%AF%BC%E5%87%BA/">Abp 文件导出</a></p></div></article><article class="media"><div class="media-content"><p class="date"><time dateTime="2020-05-12T15:06:38.000Z">2020-05-12</time></p><p class="title"><a href="/2020/05/12/Abp-swagger-%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B6/">Abp swagger 上传文件</a></p></div></article></div></div><div class="card widget" data-type="archives"><div class="card-content"><div class="menu"><h3 class="menu-label">归档</h3><ul class="menu-list"><li><a class="level is-mobile" href="/archives/2020/10/"><span class="level-start"><span class="level-item">十月 2020</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li><li><a class="level is-mobile" href="/archives/2020/05/"><span class="level-start"><span class="level-item">五月 2020</span></span><span class="level-end"><span class="level-item tag">8</span></span></a></li></ul></div></div></div><div class="card widget" data-type="tags"><div class="card-content"><div class="menu"><h3 class="menu-label">标签</h3><div class="field is-grouped is-grouped-multiline"><div class="control"><a class="tags has-addons" href="/tags/Net-Core/"><span class="tag">.Net Core</span><span class="tag">3</span></a></div><div class="control"><a class="tags has-addons" href="/tags/Abp/"><span class="tag">Abp</span><span class="tag">3</span></a></div><div class="control"><a class="tags has-addons" href="/tags/Docker/"><span class="tag">Docker</span><span class="tag">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/docker/"><span class="tag">docker</span><span class="tag">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/k8s/"><span class="tag">k8s</span><span class="tag">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/sql/"><span class="tag">sql</span><span class="tag">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/%E5%B7%A5%E5%85%B7/"><span class="tag">工具</span><span class="tag">3</span></a></div></div></div></div></div><div class="card widget" data-type="subscribe-email"><div class="card-content"><div class="menu"><h3 class="menu-label">订阅更新</h3><form action="https://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open(&#039;https://feedburner.google.com/fb/a/mailverify?uri=&#039;,&#039;popupwindow&#039;,&#039;scrollbars=yes,width=550,height=520&#039;);return true"><input type="hidden" value="" name="uri"><input type="hidden" name="loc" value="en_US"><div class="field has-addons"><div class="control has-icons-left is-expanded"><input class="input" name="email" type="email" placeholder="Email"><span class="icon is-small is-left"><i class="fas fa-envelope"></i></span></div><div class="control"><input class="button" type="submit" value="订阅"></div></div></form></div></div></div></div><!--!--></div></div></section><footer class="footer"><div class="container"><div class="level"><div class="level-start"><a class="footer-logo is-block mb-2" href="/"><img src="/images/favicon-32x32-tao.svg" alt="荣陶博客" height="28"></a><p class="is-size-7"><span>&copy; 2021 rongtao</span>  Powered by <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a> &amp; <a href="https://github.com/ppoffice/hexo-theme-icarus" target="_blank" rel="noopener">Icarus</a></p></div><div class="level-end"><div class="field has-addons"><p class="control"><a class="button is-transparent is-large" target="_blank" rel="noopener" title="Creative Commons" href="https://creativecommons.org/"><i class="fab fa-creative-commons"></i></a></p><p class="control"><a class="button is-transparent is-large" target="_blank" rel="noopener" title="Attribution 4.0 International" href="https://creativecommons.org/licenses/by/4.0/"><i class="fab fa-creative-commons-by"></i></a></p><p class="control"><a class="button is-transparent is-large" target="_blank" rel="noopener" title="Download on GitHub" href="https://github.com/zhuorongtao"><i class="fab fa-github"></i></a></p></div></div></div></div></footer><script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/moment@2.22.2/min/moment-with-locales.min.js"></script><script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.4/dist/clipboard.min.js" defer></script><script>moment.locale("zh-CN");</script><script>var IcarusThemeSettings = {
            article: {
                highlight: {
                    clipboard: true,
                    fold: 'unfolded'
                }
            }
        };</script><script src="/js/column.js"></script><script src="/js/animation.js"></script><a id="back-to-top" title="回到顶端" href="javascript:;"><i class="fas fa-chevron-up"></i></a><script src="/js/back_to_top.js" defer></script><!--!--><!--!--><!--!--><script src="https://cdn.jsdelivr.net/npm/cookieconsent@3.1.1/build/cookieconsent.min.js" defer></script><script>window.addEventListener("load", () => {
      window.cookieconsent.initialise({
        type: "info",
        theme: "edgeless",
        static: false,
        position: "bottom-left",
        content: {
          message: "此网站使用Cookie来改善您的体验。",
          dismiss: "知道了！",
          allow: "允许使用Cookie",
          deny: "拒绝",
          link: "了解更多",
          policy: "Cookie政策",
          href: "https://www.cookiesandyou.com/",
        },
        palette: {
          popup: {
            background: "#edeff5",
            text: "#838391"
          },
          button: {
            background: "#4b81e8"
          },
        },
      });
    });</script><script src="https://cdn.jsdelivr.net/npm/lightgallery@1.6.8/dist/js/lightgallery.min.js" defer></script><script src="https://cdn.jsdelivr.net/npm/justifiedGallery@3.7.0/dist/js/jquery.justifiedGallery.min.js" defer></script><script>window.addEventListener("load", () => {
            if (typeof $.fn.lightGallery === 'function') {
                $('.article').lightGallery({ selector: '.gallery-item' });
            }
            if (typeof $.fn.justifiedGallery === 'function') {
                if ($('.justified-gallery > p > .gallery-item').length) {
                    $('.justified-gallery > p > .gallery-item').unwrap();
                }
                $('.justified-gallery').justifiedGallery();
            }
        });</script><!--!--><!--!--><!--!--><!--!--><!--!--><script src="/js/main.js" defer></script><div class="searchbox"><div class="searchbox-container"><div class="searchbox-header"><div class="searchbox-input-container"><input class="searchbox-input" type="text" placeholder="想要查找什么..."></div><a class="searchbox-close" href="javascript:;">×</a></div><div class="searchbox-body"></div></div></div><script src="/js/insight.js" defer></script><script>document.addEventListener('DOMContentLoaded', function () {
            loadInsight({"contentUrl":"/content.json"}, {"hint":"想要查找什么...","untitled":"(无标题)","posts":"文章","pages":"页面","categories":"分类","tags":"标签"});
        });</script></body></html>